<% 
var headContent = {
	include("/pages/template/head.html"){}
%>
<% include("/static/component/include/my97.html"){} %>

<script type="text/javascript">
	var oper ;
	jQuery(function($) {
		oper = new flyfox("money", "金钱");
	});
</script>

<%
};
var bodyContent = {
%>
<form name="form1" action="" method="post" class="form-horizontal"
		role="form" onsubmit="oper.save(${model.id});">
	<input type="hidden" name="model.id" value="${model.id}" />
	<table class="table">
		<% // 列表头部 %>
			<tr>
				<td>项目名称</td>
				<td>
					<select name="model.project_id" class="form-control" >
					${projectName  }
					</select>
				</td>
			</tr>
					<tr>
				<td>描述</td>
				<td>
						<input class="form-control" type="text" name="model.name" value="${model.name}"  />
				</td>
			</tr>
					<tr>
				<td>金额(RMB)</td>
				<td>
						<input class="form-control" type="text" name="model.amount" value="${model.amount}"  />
				</td>
			</tr>
					<tr>
				<td>类型</td>
				<td>
					<select name="model.type" class="form-control" >
					${flyfox.dictSelect('moneyType' , model.type!'')  }
					</select>
								</td>
			</tr>
					<tr>
				<td>时间</td>
				<td>
						<input class="form-control" type="text"   onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
							name="model.pay_time" value="${model.pay_time}"  />
				</td>
			</tr>
					<tr>
				<td>备注</td>
				<td>
					<textarea class="form-control" rows="3" cols="30" name="model.remark">${model.remark}</textarea>
				</td>
			</tr>
		 
		<tr>
			<td></td>
			<td>
			<input type="submit" value="保 存" class="btn btn-default">
			<button class="btn btn-default" onclick="closeIframe();">关 闭</button>
			</td>
		</tr>
	</table>
</form>
<%}; %>

<% layout("/pages/template/_layout.html",{head:headContent,body:bodyContent}){ %>
<%} %>


